package com.zhangmeng.tools.json2Pojo;

import cn.hutool.core.lang.Console;

/**
 * @author : 芊芊墨客
 * @version : 1.0
 * @date : 2023-04-21 09:44
 */
public class TestUtils {

    public static void main(String[] args) {
        t();
    }

    public static void t(){

        String json = "[{\n" +
                "    \"title\": \"当日销售状况\",\n" +
                "    \"childs\": [{\n" +
                "            \"title\": \"堂食业务\",\n" +
                "            \"childs\": [{\n" +
                "                    \"title\": \"折前销售额\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"优惠金额\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"折后销售额\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"堂食动销费\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"收款手续费\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        {\n" +
                "            \"title\": \"会员储值\",\n" +
                "            \"childs\": [{\n" +
                "                    \"title\": \"储值金额\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"赠送金额\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"赠券金额\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"收款手续费\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        {\n" +
                "            \"title\": \"预售业务\",\n" +
                "            \"childs\": [{\n" +
                "                    \"title\": \"预售订单数\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"销售额\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"预售动销费\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"技术服务费\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        {\n" +
                "            \"title\": \"团购业务\",\n" +
                "            \"childs\": [{\n" +
                "                    \"title\": \"团购订单数\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"销售额\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"团购动销费\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"技术服务费\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        {\n" +
                "            \"title\": \"外卖业务\",\n" +
                "            \"childs\": [{\n" +
                "                    \"title\": \"外卖订单数\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"折前销售额\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"优惠金额\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"折后销售额\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"外卖动销费\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"title\": \"技术服务费\",\n" +
                "                    \"value\": \"9999.00\"\n" +
                "                }\n" +
                "            ]\n" +
                "        }\n" +
                "    ]\n" +
                "}, {\n" +
                "    \"title\": \"当日用餐状况\",\n" +
                "    \"childs\": [{\n" +
                "        \"title\": \"\",\n" +
                "        \"childs\": [{\n" +
                "                \"title\": \"就餐人数\",\n" +
                "                \"value\": \"999\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"title\": \"人均消费\",\n" +
                "                \"value\": \"9999.00\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"title\": \"就餐桌数\",\n" +
                "                \"value\": \"99\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"title\": \"桌均消费\",\n" +
                "                \"value\": \"9999.00\"\n" +
                "            }\n" +
                "        ]\n" +
                "    }]\n" +
                "}, {\n" +
                "    \"title\": \"当日推广专用账户支出\",\n" +
                "    \"childs\": [{\n" +
                "        \"title\": \"\",\n" +
                "        \"childs\": [{\n" +
                "                \"title\": \"堂食动销费\",\n" +
                "                \"value\": \"999.00\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"title\": \"促推活动奖金\",\n" +
                "                \"value\": \"9999.00\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"title\": \"代言奖金\",\n" +
                "                \"value\": \"9999.00\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"title\": \"推销奖金\",\n" +
                "                \"value\": \"9999.00\"\n" +
                "            }\n" +
                "        ]\n" +
                "    }]\n" +
                "}, {\n" +
                "    \"title\": \"当日账户余额\",\n" +
                "    \"childs\": [{\n" +
                "        \"title\": \"\",\n" +
                "        \"childs\": [{\n" +
                "                \"title\": \"系统结算账户余额\",\n" +
                "                \"value\": \"999.00\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"title\": \"推广专用账户余额\",\n" +
                "                \"value\": \"9999.00\"\n" +
                "            }\n" +
                "        ]\n" +
                "    }]\n" +
                "}]";

       // String pojoCode = Json2PojoCodeGeneratorUtil.json2pojo(json,"Test", "work.linruchang.lrcutilsweb.consts");
//        Console.log(pojoCode);
    }


}
